import request from '@/utils/request';

import {
  TEST_URL
} from "@/api/API_CONFIG"

// 设置视频质量
export function liveSetQuality(params) {
  return request({
    url: `${TEST_URL}/v1/live_direct/live_set_quality`,
    method: 'post',
    data: params
  })
}

export function getShareVideoInfo(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/share_video`,
    method: 'post',
    data: params
  })
}

export function countShareVideo(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/video_expiration_verify`,
    method: 'post',
    data: params
  })
}

export function closeShareVideo(params) {
  return request({
    url: `${TEST_URL}/v3/kanban/termination_share_video`,
    method: 'post',
    data: params
  })
}

export function requestVideoPlayTimes(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/viewers_of_video`,
    method: 'post',
    data: params
  })
}

export function requestNestByRecord(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/record_to_nest`,
    method: 'get',
    params: params
  })
}

//红外可见光切换
export function liveLensChange(params) {
  return request({
    url: `${TEST_URL}/v1/live_direct/live_lens_change`,
    method: "post",
    data: params,
  });
}

// 获取飞行中航线任务信息
export function getFlyingInfo(params) {
  return request({
    url: `${TEST_URL}/v1/record/get_flying_info`,
    method: 'get',
    params
  })
}
